package com.wcy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wcy.annotation.pageVo.PageColumn;
import com.wcy.annotation.pageVo.PageName;
import lombok.*;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-27
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("resource_tag")
@PageName(name = "标签")
public class ResourceTag {

    public ResourceTag(Integer tagId){
        this.tagId = tagId;
    }

    @PageColumn(isId = true,prop="tagId", label="标签ID",allowEdit = false)
    @TableId(value = "tag_id", type = IdType.AUTO)
    private Integer tagId;

    @PageColumn(prop="tagName", label="标签名")
    @TableField("tag_name")
    private String tagName;
}
